#ifndef JULI_CHART_H
#define JULI_CHART_H

#ifdef __cplusplus
extern "C"
{
#endif

	typedef struct
	{
		Li_List items;
		int lineWidth;
		int nowAt;
		float axisMin, axisMax, scale;
		float yMin, yMax;
		char status;
		char stop;
	} ChartView_t;
	typedef ChartView_t* ChartView;

	extern const char* cmd_chart_annotation;
	extern Li_List charts; // List<JUI>
	extern JUI chart_handle;

	void chart_file_init(void);
	int chart_test_demo(void);

	void collection_fun_math_kit(void);
	int cmd_chart(int n, char* arg[]);
	void chart_add_ref(ChartView chart, float* pv);

#ifdef __cplusplus
}
#endif

#endif // !JULI_CHART_H
